package 数据结构.链表.单链表;

//定义HeroNode,每个heroNode对象就是一个节点
class HeroNode{//水浒英雄榜
    public int no;//排名编号
    public String name;
    public String nickname;//昵称
    HeroNode next;
    // 构造器和初始化
    public HeroNode(int hNo, String hName, String hNickname){
        this.no = hNo;
        this.name = hName;
        this.nickname = hNickname;
    }
//    重写toString

    @Override
    public String toString() {
        return "HeroNode{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}